// JavaScript Document
$(function () {
	initDetail();
});
//初始化
function initDetail(){
	getInfo(getQueryString("id"));
	
}
//获取详情
function getInfo(id){
	var str = 'craraUuid='+encodeURIComponent(id);
	getOData(str,"coreArea/views",{fn:function(oData){
		if(oData.code == 1) {
			$(".craraName").text(oData.data.craraName || "");
			var craraTopCH="";
			var craraTop=oData.data.craraTop;
			if (craraTop=='7') {
				craraTopCH="管家商城";
			} else if (craraTop=='8') {
				craraTopCH="鲜果到家";
			} else if (craraTop=='5') {
				craraTopCH="智能家居";
			} 
			$(".craraTop").text(craraTopCH || "");
		} else {
			alert(data.errMsg);
		}
	}});
}